/*
	This file is part of PropExtractor.

	PropExtractor is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	PropExtractor is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with PropExtractor. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _PETOOLS_H_
#define _PETOOLS_H_

namespace pe
{

	PE_EXPORT int CheckDirectory(const wchar_t* a_FilePath);
	PE_EXPORT int GetPatternedPath(wchar_t* a_Target, size_t* a_Length, const char* a_Pattern, const wchar_t* a_Path, const wchar_t* a_WorkingDir = NULL, unsigned int a_Index = 0);
	PE_EXPORT int WriteTGA(const char* a_FilePath, unsigned int a_Width, unsigned int a_Height, byte* a_Data);
	PE_EXPORT int ReadBytes(void* a_Target, unsigned int a_ElementSize, unsigned int a_Amount, byte* a_Source);
	PE_EXPORT int ReadUTF8String(wchar_t** a_Target, byte* a_Source);
	PE_EXPORT int StripSpecialCharsAndSave(char** a_Target, char* a_Source);

}; // namespace pe

#endif